﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Doc.FileList" %>

<%=_framePage.GetPagerFormHtml("/SystemManage/Basics/Doc/FileList.aspx")%>

<form id="pageForm" method="post" runat="Server" class="pageForm" onsubmit="return dialogSearch(this);" action="/SystemManage/Basics/Doc/FileList.aspx">

<div class="pageHeader">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
			    <span>文件名&nbsp;</span>
				<asp:TextBox ID="txtFileName" runat="server"></asp:TextBox>&nbsp;&nbsp;
			</li>
		</ul>
	    <div class="subBar">
			<ul>
			<li>
			    <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
			</li>
			</ul>
	    </div>
	</div>
</div>

<div class="pageContent">
	<table class="list allfilelist" width="95%" layoutH="138">
	    <thead>
			<tr>
                <th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
				<th width="5%" style="display: none">编号</th>
				<th width="30%">文件名</th>
				<th width="15%">文件大小</th>
				<th width="15%">上传时间</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="repFile">
                <ItemTemplate>
                <tr target="uid" rel="<%# Eval("Id")%>" fpath="<%# Eval("FilePath")%>" fname="<%# Eval("FileName")%>" fsize="<%# Eval("FileSize")%>" >
                    <td height="25px"><input name="ids" value="<%#Eval("Id")%>" type="checkbox"/></td>
				    <td style="display: none"><%# Eval("Id")%></td>
				    <td><span class="<%# GetFileSpanClass(Eval("FileName").ToString())%>">
				        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%# Eval("FileName")%></span>
				    </td>
				    <td><%# GetSizeString((int)Eval("FileSize"))%></td>
				    <td><%# Eval("UploadTime", "{0:yyyy-MM-dd}")%></td>
				    <td>   		                
				        <%#GetPreviewAnchor(Eval("FileName").ToString(), Eval("FilePath").ToString())%>&nbsp;&nbsp;
				        <a href="/SystemManage/Basics/File/Download.aspx?uid=<%# Eval("Id")%>">下载</a>
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>
  
    <%= _framePage.GetPagerContentHtml("dialog")%>
    <div class="formBar">
	    <ul>
	        <li>
	        <div class="buttonActive"><div class="buttonContent"><button onclick="ZLAN_FileControl.getSelcetFiles();" class="close">确定</button></div></div>
            </li>
            <li>
	        <div class="buttonActive"><div class="buttonContent"><button class="close">退出</button></div></div>
            </li>
		</ul>
    </div>
</div>


</form>

<script type="text/javascript">
    $(document).ready(function() {
        $(".prettyPhoto").prettyPhoto();
    });
</script>
